package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.entity.FileNode;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 *
 */
@Service
public interface FileNodeService {


    JSONObject insert(MultipartFile uploadFile, FileNode fileNode);

    JSONObject update(MultipartFile uploadFile, FileNode fileNode);

    JSONObject deleteById(FileNode fileNode);

    JSONObject selectAll(FileNode fileNode);

    JSONObject selectOneById(Long id);

    JSONObject updateProperty(FileNode fileNode);

    JSONObject deleteFile(FileNode fileNode);
}
